Skip to main content

ViewPage<TModel>

Assembly: ServiceStack.Razor.dll
View Source
Declaration
public abstract class ViewPage<TModel> : ViewPageBase<TModel>, IHasModel, IRazorView, IDisposable

Properties

Counter

View Source
Declaration
public int Counter { get; set; }

HtmlHelper

View Source
Declaration
public HtmlHelper HtmlHelper { get; }

Output

View Source
Declaration
public override StreamWriter Output { get; set; }

ModelType

View Source
Declaration
public override Type ModelType { get; }

Fields

Html

View Source
Declaration
public HtmlHelper<TModel> Html

Methods

Init(IViewEngine, IRequest, IResponse)

View Source
Declaration
public void Init(IViewEngine viewEngine, IRequest httpReq, IResponse httpRes)
Parameters
TypeName
ServiceStack.Html.IViewEngineviewEngine
IRequesthttpReq
IResponsehttpRes

SetModel(Object)

View Source
Declaration
public override void SetModel(object o)
Parameters
TypeName
System.Objecto

WriteTo(StreamWriter)

View Source
Declaration
public void WriteTo(StreamWriter writer)
Parameters
TypeName
System.IO.StreamWriterwriter

Implements